package v1

import (
	"auth/utils"
	"github.com/gin-gonic/gin"
)

var Health = &health{}

func init() {
	RegisterRouter(Health)
}

type health struct {
}

// Init 初始化路由
func (a *health) Init(r *gin.RouterGroup) {
	g := r.Group("/health")
	{
		g.POST("/ping", a.health)
	}
}

// health 心跳
func (a *health) health(c *gin.Context) {
	utils.ResponseOk(c, nil)
	return
}
